package org.elanfox.intellicommunity.common.ienum;

import org.elanfox.intellicommunity.common.ienum.base.CodeDescCommonEnum;

/**
 * @author allan
 * @version 1.0.0
 * @date 2019/12/19
 */
public interface MsgEnums {
    enum AlarmType implements CodeDescCommonEnum {
        NO_ALARM(0, "无报警"),
        ALARM_BUTTON(1, "报警按钮"),
        BATTERY_ALARM(2, "低电量"),
        SPECIAL_ALARM(3, "特殊警报");

        private Integer code;
        private String desc;

        AlarmType(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        @Override
        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        @Override
        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    enum AlarmStatus implements CodeDescCommonEnum {
        ALARMING(0, "报警中"),
        ON_LOAD(1, "出警中"),
        HANDLED(2, "已处理"),
        SUBMITTED(3, "已提交工单"),
        IGNORE(4, "警报解除");

        private Integer code;
        private String desc;

        AlarmStatus(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        @Override
        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        @Override
        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }
}
